package com.smartwebee.android.blespp.blockly.command;

public class CommandImpl implements CommandInterface {
    @Override
    public String getLedStr(String index, String red, String green, String blue) {
        StringBuilder sb = new StringBuilder();
        sb.append("setLed(")

                .append(index)
                .append(", ")

                .append(red)
                .append(", ")

                .append(green)
                .append(", ")

                .append(blue)
                .append(")");
        return sb.toString();
    }

    @Override
    public String getBeepStr(String freq, String rhythm) {
        StringBuilder sb = new StringBuilder();
        sb.append("setBeep(")

                .append(freq)
                .append(", ")

                .append(rhythm)
                .append(")");
        return sb.toString();
    }
}
